home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Genie
/
Projects
/
Pedestal
/
Source
/
Includes
/
XAutoReleasePool.hh
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2000-06-24
|
291 b
|
17 lines
/* XAutoReleasePool.hh */
#pragma once
#include "XObject.hh"
#include "XList.hh"
class XAutoReleasePool : virtual public XObject {
public:
virtual void Add(XObject *inObject) {
if (inObject) mList.Append(inObject);
}
virtual void Flush() {mList.Purge();}
protected:
XList mList;
};